/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A9258BFE-DE3A-47D5-8020-E3C1310E4C47"}
 */
function _borrar(event) {

	foundset.deleteRecord(foundset.getSelectedRecord());
}

/**
 * Called before the form component is rendered.
 *
 * @param {JSRenderEvent} event the render event
 *
 * @private
 *
 * @properties={typeid:24,uuid:"F050919E-23DE-4BAF-B900-2DEC2519200F"}
 */
function onRender(event) {
	
	/** @type {JSRecord<db:/pigeon_board/adm_t900_menus>} */
	var record = event.getRecord();
	
	if (record && record.adm_t900_menus_padre_id == null) {
		event.getRenderable().fgcolor = 'red';
	} else{
		event.getRenderable().fgcolor = "#808080";
	}
}
